﻿using PoznanEvents.Models;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;

namespace PoznanEvents
{
    public class MapPansEvenArgs : EventArgs
    {
        private ObservableCollection<Event> EventsCollection;

        public MapPansEvenArgs(ObservableCollection<Event> events)
        {
            EventsCollection = events;
        }

        public IEnumerable<Event> GetMapPans()
        {
            foreach (var eventItem in EventsCollection)
            {
                yield return eventItem;
            }
        }
    }
}
